package com.cn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 广告信息
    */
@ApiModel(value="com-cn-pojo-Adv")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "adv")
public class Adv {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    @ApiModelProperty(value="创建时间")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="修改时间")
    private Date gmtModified;

    /**
     * 状态(1:正常，0:禁用)
     */
    @TableField(value = "status_id")
    @ApiModelProperty(value="状态(1:正常，0:禁用)")
    private Byte statusId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="排序")
    private Integer sort;

    /**
     * 广告标题
     */
    @TableField(value = "adv_title")
    @ApiModelProperty(value="广告标题")
    private String advTitle;

    /**
     * 广告图片
     */
    @TableField(value = "adv_img")
    @ApiModelProperty(value="广告图片")
    private String advImg;

    /**
     * 广告链接
     */
    @TableField(value = "adv_url")
    @ApiModelProperty(value="广告链接")
    private String advUrl;

    /**
     * 广告跳转方式
     */
    @TableField(value = "adv_target")
    @ApiModelProperty(value="广告跳转方式")
    private String advTarget;

    /**
     * 广告位置(1首页轮播)
     */
    @TableField(value = "adv_location")
    @ApiModelProperty(value="广告位置(1首页轮播)")
    private Byte advLocation;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    @ApiModelProperty(value="开始时间")
    private Date beginTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value="结束时间")
    private Date endTime;

    /**
     * 位置(0电脑端，1微信端)
     */
    @TableField(value = "plat_show")
    @ApiModelProperty(value="位置(0电脑端，1微信端)")
    private Byte platShow;

    public static final String COL_ID = "id";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_STATUS_ID = "status_id";

    public static final String COL_SORT = "sort";

    public static final String COL_ADV_TITLE = "adv_title";

    public static final String COL_ADV_IMG = "adv_img";

    public static final String COL_ADV_URL = "adv_url";

    public static final String COL_ADV_TARGET = "adv_target";

    public static final String COL_ADV_LOCATION = "adv_location";

    public static final String COL_BEGIN_TIME = "begin_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_PLAT_SHOW = "plat_show";
}